
package com.joolun.cloud.mall.admin.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joolun.cloud.mall.common.entity.OrderInfo;
import com.joolun.cloud.mall.common.entity.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 商城订单
 *
 * @author www.joolun.com
 * @date 2019-09-10 15:21:22
 */
public interface OrderInfoService extends IService<OrderInfo> {

	IPage<OrderInfo> page1(IPage<OrderInfo> page, Wrapper<OrderInfo> queryWrapper);

	/**
	 * 订单收货
	 * @param orderInfo
	 */
	void orderReceive(OrderInfo orderInfo);

	/**
	 * 修改商城订单价格
	 * @param orderItem
	 */
	void editPrice(OrderItem orderItem);

	/**
	 * 查询统计付款金额
	 * @param orderInfo
	 * @return
	 */
	BigDecimal sumPaymentPrice(OrderInfo orderInfo);
}
